package ExpressThree;

//与dct相连
public class COCT extends IONode {
    private static final String name="COCT";
    COCT(int num){
        super(name+num);
    }

    @Override
    public void setNext(IONode next) {
        super.setNext(next);
    }

    @Override
    public String toString() {
        StringBuilder str= new StringBuilder();
        for(int i=0;i<super.getList_waiting().size();i++){
            str.append(super.getList_waiting().get(i)).append("\n");
        }
        return "identifyName: "+super.getIdentifyName()+"\n"+
                "currentProcess: "+super.getProcessNode()+"\n"+
                "wait list:\n"+ str.toString();
    }
}
